﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace proyectoFinalPDS
{
    public partial class Splash2 : Form
    {
        string cadena="Ingresando";
        public Splash2()
        {
            InitializeComponent();


            this.FormBorderStyle = FormBorderStyle.None; ;
            this.StartPosition = FormStartPosition.CenterScreen;


            tiempo.Interval = 20;
            tiempo.Enabled = true;
        }

        private void tiempo_Tick(object sender, EventArgs e)
        {
            if (barraProgeso.Value > 98)
            {
                tiempo.Stop();
                this.Close();
            }

            barraProgeso.Value++;
            if (barraProgeso.Value % 12 == 0)
                cadena = "Ingresando";
            if (barraProgeso.Value % 3 == 0)
                cadena += ".";

            textIngresando.Text = cadena;
        }


    }
}
